package main

import (
	"web"
	"mvc"
	"controller"
)

func main() {
	mvc := mvc.NewMvc()
	mvc.RegisterController((*controller.Home)(nil))
	mvc.SetDefault("Home", "Index")
	web.Get("/(.*)", web.MethodHandler(mvc, "Handler"))
	web.Post("/(.*)", web.MethodHandler(mvc, "Handler"))
	web.Run(":9999")
}
